import { createRoot } from "react-dom/client";
import { RouterProvider } from "react-router-dom";
import router from "./router/index.tsx";
import "./main.scss";
import zhCN from "antd/locale/zh_CN";
// for date-picker i18n
// import "dayjs/locale/zh-cn";
import { ConfigProvider } from "antd";
import store from "@/store/index.ts";
import { Provider } from "react-redux";

createRoot(document.getElementById("root")!).render(
  <ConfigProvider locale={zhCN}>
    <Provider store={store}>
      <RouterProvider router={router}></RouterProvider>
    </Provider>
  </ConfigProvider>
);
